﻿#pragma once
#include "Support/rapidjson/JsonIOHandler.h"
#include "Characters.h"

class CCharactersReaderHandle :
	public BaseReaderHandler<_stCharactersPorperty, int>
{
public:
	CCharactersReaderHandle(std::unordered_map<int, _stCharactersPorperty>* map);
	bool HandleBool(const std::wstring& key, bool b);
	bool HandleInt(const std::wstring& key, int i);
	bool HandleString(const std::wstring& key, const std::wstring& str);
	bool HandleStartObj(const std::wstring& key);
	bool HandleEndObj();

private:
	bool m_bKeyInEffect = false;		// 是否在"effect"嵌套中
};